<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
赋值：<span th:text="${userName}">userName</span><br>
拼接：<span th:text="'Hello'+${userName}+'!'">Hello userName!</span><br>
拼接：<span th:text="|Hello+${userName}+!|">Hello userName!</span>
<H1>基本对象</H1>
<p th:text="${test}"></p>
<p th:text="${session.test}"></p>
<h1>Utility对象</h1>
<p th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}">2019-11-27 15:56:30</p>
<p th:text="${#dates.createToday()}">2019-11-27</p>
</body>
</html>